package com.mask.im.business.controller;
import com.mask.im.business.model.entity.ComplaintsCauseDO;
import com.mask.im.business.common.model.RestResponse;
import com.mask.im.business.service.ComplaintsCauseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(tags = "投诉原因模块")
@RestController
public class ComplaintsCauseController {

	@Autowired
	private ComplaintsCauseService complaintsCauseService;

	@ApiOperation("获取投诉所有原因")
	@GetMapping("/users/complaintsCause")
	public RestResponse<List<ComplaintsCauseDO>> getAllComplaintsCause(){
		return complaintsCauseService.getAllComplaintsCause();
	}
}

